package com.demo.dao.impl;

import com.demo.dao.UserDao;
import com.demo.pojo.User;

import java.util.Map;

public class UserDaoImpl implements UserDao {
    private Map<String, User> userMap;

    public void setUserMap(Map<String, User> userMap) {
        this.userMap = userMap;
    }

    public void myInitMethod() {
        System.out.println("必要的初始化步骤");
    }

    public void myDestroyMethod() {
        System.out.println("必要的销毁步骤");
    }

    @Override
    public void save() {
        System.out.println("UserDaoImpl正在执行，用户已保存");
    }
}
